<!-- 服务协议-模板 -->
<template>
	<view class="ql-snow ql-container">
		<view class="article ql-editor" v-html="htmlText"></view>
	</view>
</template>

<!-- 组件核心js -->
<script>
	export default {
		data() {
			return {
				htmlText: ''
			};
		},
		onLoad() {
			// 初始化-函数
			this.initData();
		},
		methods: {
			/**
			 * 初始化-函数
			 */
			initData() {
				this.$myHttps(this.$apiNames.TEXT_SERVICE).then(res => {
					// console.log("获取【服务协议】：", res);
					if(res.code == 200) {
						this.htmlText = res.data;
					} else {
						this.$Msg(res.msg);
					}
				})
			}
		}
	}
</script>

<!-- 全局css -->
<style lang="less"></style>

<!-- 本组件css -->
<style lang="less" scoped>
	@import url("../../static/css/quill.core.css");
	@import url("../../static/css/quill.snow.css");
	@import url("../../static/css/quill.bubble.css");
	.ppDoms{
		margin: 40upx 20upx;
		.textIndex {
			text-indent: 2em;
		}
	}
</style>